package com.kk.xhr.admin.controller.vo;

import com.kk.xhr.common.pojo.BinaryEnum;
import com.kk.xhr.common.pojo.SignStatusEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * 考勤签到vo
 *
 * @author luokexiong
 * @version 1.0 2021/2/18
 * @since 1.0.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class SignVo {
    @ApiModelProperty(value = "id", example = "1")
    private Long id;
    @ApiModelProperty(value = "员工名字", example = "小李子")
    private String name;
    @ApiModelProperty(value = "上班打卡时间", example = "2021-2-21 09:00:00")
    private LocalDateTime begin;
    @ApiModelProperty(value = "下班打卡时间", example = "2021-2-21 19:00:00")
    private LocalDateTime end;
    @ApiModelProperty(value = "时长", example = "8.0")
    private Float duration;
    @ApiModelProperty(value = "缺失时长", example = "0")
    private Integer lack;
    @ApiModelProperty(value = "打卡日期", example = "2021-2-21 00:00:00")
    private LocalDateTime signDate;
    @ApiModelProperty(value = "打卡状态", example = "NORMAL")
    private SignStatusEnum beginStatus;
    @ApiModelProperty(value = "打卡状态", example = "NORMAL")
    private SignStatusEnum endStatus;
    @ApiModelProperty(value = "状态", example = "TRUE")
    private BinaryEnum status;
}
